/*
 * Copyright (c) 2018. 玺得（深圳）科技有限公司.保留所有权利. http://www.pi-top.com/ 玺得（深圳）科技有限公司保留所有代码著作权.如有任何疑问请访问官方网站与我们联系. 代码只针对特定需求定制编码，不得在未经允许或授权的情况下对外传播扩散.恶意传播者，法律后果自行承担. 本代码仅用于pps-cloud系统.
 */
package com.pitop.factory.api;

import com.pitop.factory.entity.FactorySample;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 工厂的样品 api请求熔断器 熔断实现
 *
 * @author pi-top
 */
@Component
public class FactorySampleFeignApiImpl implements FactorySampleFeignApi {
    /**
     * 查询FactorySample一个详情信息
     *
     * @param id          id
     * @param sampleCode  样品编码
     * @param factoryCode 工厂编码
     * @return BeanRet
     */
    @Override
    public FactorySample load(@RequestParam("id") java.lang.Long id, @RequestParam("sampleCode") java.lang.String sampleCode, @RequestParam("factoryCode") java.lang.String factoryCode) {
        return new FactorySample();
    }


    /**
     * 根据条件id查询FactorySample一个详情信息
     *
     * @param id id
     * @return BeanRet
     */
    @Override
    public FactorySample loadById(@RequestParam("id") java.lang.Long id) {
        return new FactorySample();
    }

    /**
     * 根据条件sampleCode查询FactorySample一个详情信息
     *
     * @param sampleCode 样品编码
     * @return List<FactorySample>
     */
    @Override
    public List<FactorySample> listBySampleCode(@PathVariable("sampleCode") java.lang.String sampleCode) {
        return new ArrayList<FactorySample>();
    }

    /**
     * 根据条件factoryCode查询FactorySample一个详情信息
     *
     * @param factoryCode 工厂编码
     * @return List<FactorySample>
     */
    @Override
    public List<FactorySample> listByFactoryCode(@PathVariable("factoryCode") java.lang.String factoryCode) {
        return new ArrayList<FactorySample>();
    }


    /**
     * 查询FactorySample信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<FactorySample> list(@RequestBody FactorySample factorySample, int curPage, int pageSize) {
        return new ArrayList();
    }


    /**
     * 查询FactorySample信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<FactorySample> listByPk(java.lang.Long id, java.lang.String sampleCode, java.lang.String factoryCode, int curPage, int pageSize) {
        return new ArrayList();
    }


    @Override
    public Integer count(@RequestParam("id") java.lang.Long id, @RequestParam("sampleCode") java.lang.String sampleCode, @RequestParam("factoryCode") java.lang.String factoryCode) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody FactorySample factorySample) {
        return 0;
    }

    /**
     * 创建FactorySample
     *
     * @return BeanRet
     */
    @Override
    public FactorySample build(@RequestBody FactorySample factorySample) {
        return new FactorySample();
    }


    /**
     * 修改FactorySample
     *
     * @return BeanRet
     */
    @Override
    public FactorySample modify(@RequestBody FactorySample factorySample) {
        return new FactorySample();
    }

    /**
     * 删除FactorySample
     *
     * @return BeanRet
     */
    @Override
    public void delete(@RequestParam("id") java.lang.Long id, @RequestParam("sampleCode") java.lang.String sampleCode, @RequestParam("factoryCode") java.lang.String factoryCode) {
        return;
    }
}
